<template>
 <div>
     <div>用户名：<input type="text" v-model="username"></div>
 <div>密码：<input type="password" v-model="password"></div>
    <div><button @click="login">登录</button></div>
 </div>
    </template>
    <script setup>
    import { ref } from 'vue'
    let username=ref('')
    let password=ref('')
    const login=()=>{
    console.log(username.value,password.value,'实现登录')
    }
    </script>